01Objectives & hardware
Goal
Install and configure XAMPP, and use a web server with a database.
Hardware required
A PC running Windows or macOS.
Lab assessment (deliverable): write a report as a tutorial documenting the installation and configuration of XAMPP.
02Introduction & installation
What is XAMPP?
XAMPP is a free, open-source, cross-platform web server solution stack. The name is an acronym:
XCross-
platform
platform
AApache
server
server
MMariaDB
(MySQL)
(MySQL)
PPHP
language
language
PPerl
language
language
Task: installation steps
- Explain the role of each component (Apache, MySQL/MariaDB, PHP…) in your report.
- Download the latest version of XAMPP from the official website: apachefriends.org/download
- Install the software and detail every step in your report (with screenshots if needed).
- Important: note the installation directory (e.g.
C:\xampp). - Launch the XAMPP Control Panel and start the Apache and MySQL modules.
03Application & testing
Using the web server
- Deploy files: put your HTML, HTM or PHP files on the server, in the
htdocsdirectory.
Warning:
htdocs is the root of your local web server. Don't delete the default files and folders — the XAMPP dashboard uses them. Create a sub-folder for your work instead.- Test URL: open your web server in a browser at http://localhost
- Test form: check that the HTML form you created in previous exercises works in this environment.
Database setup
- Open phpMyAdmin (from the XAMPP dashboard or at
http://localhost/phpmyadmin). - Create a new database named after yourself (e.g.
db_lastname).
04Cleanup / restoration
Once the lab and your report are finished:
- Uninstall XAMPP with the Windows "Add or remove programs" tool.
- Manually delete any remaining folders or files you placed in the directory.